package world.snowcrystal.openapi.consul;

import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;

import java.util.List;

public class Te {

    private DiscoveryClient consulClient;


    public  void  test(){
        List<ServiceInstance> consul = consulClient.getInstances("consul");
        for (ServiceInstance serviceInstance : consul) {
        }
    }
}
